package cn.gene.timeyan.pojo.ums.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 搜索记录信息
 * </p>
 *
 * @author LWG
 * @since 2022-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ums_search_record")
public class SearchRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "search_id", type = IdType.AUTO)
    private Long searchId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 区域ID、默认1 (0失物招领、1全局、2分享、3互助)
     */
    private Long searchAreaUserId;

    /**
     * 搜索记录
     */
    private String searchContent;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
